using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NCS.Module.Multimedia.Library.Providers;

namespace NCS.Module.Multimedia.Library.Video
{
    public class ClipController
    {
        public static ClipInfo GetClip(int clipid)
        {
            return DataAccessProvider.instance().GetClip(clipid);
        }

        public static int Clip_Insert(ClipInfo clip)
        {
            return DataAccessProvider.instance().Clip_Insert(clip);
            
        }

        public static void Clip_Delete(int clipid)
        {
            DataAccessProvider.instance().Clip_Delete(clipid);
        }

        public static DataTable Clip_GetAll(int portalid)
        {
            return DataAccessProvider.instance().Clip_GetAll(portalid);
        }

        public static DataTable Clip_GetAllByAlbumID(int albumid)
        {
            return DataAccessProvider.instance().Clip_GetAllByAlbumID(albumid);
        }

        public static DataTable Clip_GetAllByAlbumIDAndVisible(int albumid, int visible)
        {
            return DataAccessProvider.instance().Clip_GetAllByAlbumIDAndVisible(albumid, visible);        
        }

        public static void Clip_Update(ClipInfo clip)
        {
            DataAccessProvider.instance().Clip_Update(clip);
        }

        public static void Clip_SetIndex(int clipid, int index)
        {
            DataAccessProvider.instance().Clip_SetIndex(clipid, index);
        }
    }
}
